package com.wer.service.impl;

import com.wer.entity.Flower;
import com.wer.mapper.FlowerMapper;
import com.wer.service.FlowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/18  8:42
 */
@Service("flowerService")
public class FlowerServiceImpl implements FlowerService {
    @Autowired
    FlowerMapper flowerMapper;
    @Override
    public List<Flower> selectAll() {
        return flowerMapper.selectAll();
    }

    @Override
    public int insert(Flower flower) {
        return flowerMapper.insert(flower);
    }

    @Override
    public Flower detail(int flowerId) {
        return flowerMapper.detail(flowerId);
    }
}
